{include file="/common/_meta"}
</head>
<body>
{include file="/common/top"}
<div class="main-container container-fluid">
	<div class="page-container">
		            <!-- Page Sidebar -->
       {include file="/common/list"}
        <!-- Page Content -->
        <div class="page-content">
            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                   <li>
                        <a href="#">系统</a>
                    </li>
                    <li>
                        <a href="{:url('cate/lst')}">分类管理</a>
                    </li>
                    <li class="active">修改分类</li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">
                
                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-header bordered-bottom bordered-blue">
                                <span class="widget-caption">修改分类</span>
                            </div>
                            <div class="widget-body">
                                <div id="horizontal-form">
                                    <form class="form-horizontal" role="form" action="" method="post" enctype="multipart/form-data">
                                    	<input type="hidden" name="cate_id" value="{$cateedit.cate_id}">
                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">上级分类</label>
                                            <div class="col-sm-6">
                                                <select name="cate_pid">

                                                    {volist name="catelist" id="cate"}

                                                    <option {if condition="$cate['cate_id'] eq $cateedit['cate_pid']"} selected="selected" {/if} value="{$cate.cate_id}">
                                                        <?php echo str_repeat('-',$cate['lever']*8)?>{$cate.cate_name}
                                                    </option>

                                                    {/volist}
                                                </select>
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">分类名称</label>
                                            <div class="col-sm-6">
                                                <input class="form-control" id="username" placeholder="" name="cate_name"  type="text" value="{$cateedit.cate_name}">
                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">分类类型</label>
                                            <div class="col-sm-6">
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="cate_type" value="1" {if condition="$cateedit['cate_type'] eq 1"} checked="checked" {/if} class="colored-blue" type="radio">
                                                        <span class="text">系统分类</span>
                                                    </label>
                                                </div>
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="cate_type" value="2" {if condition="$cateedit['cate_type'] eq 2"} checked="checked" {/if} class="colored-blue" type="radio">
                                                        <span class="text">帮助分类</span>
                                                    </label>
                                                </div>
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="cate_type" value="3" {if condition="$cateedit['cate_type'] eq 3"} checked="checked" {/if} class="colored-blue" type="radio">
                                                        <span class="text">网店帮助</span>
                                                    </label>
                                                </div>
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="cate_type" value="4" {if condition="$cateedit['cate_type'] eq 4"} checked="checked" {/if} class="colored-blue" type="radio">
                                                        <span class="text">网店信息</span>
                                                    </label>
                                                </div>
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="cate_type" value="5" {if condition="$cateedit['cate_type'] eq 5"} checked="checked" {/if} class="colored-blue" type="radio">
                                                        <span class="text">普通分类</span>
                                                    </label>
                                                </div>

                                            </div>
                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">关键词</label>
                                            <div class="col-sm-6">
                                                <textarea class="form-control" name="cate_keywords">{$cateedit.cate_keywords}</textarea>
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">描述</label>
                                            <div class="col-sm-6">
                                                <textarea class="form-control" name="cate_description">{$cateedit.cate_description}</textarea>
                                            </div>

                                        </div>

                                        <div class="form-group">
                                            <label for="username" class="col-sm-2 control-label no-padding-right">状态</label>
                                            <div class="col-sm-6">
                                                <div class="radio" style="float: left; padding-right: 10px;">
                                                    <label>
                                                        <input name="cate_shownav" class="colored-blue" value="1" {if condition="$cateedit['cate_shownav'] eq 1" } checked="checked" {/if} type="radio">
                                                        <span class="text">显示</span>
                                                    </label>
                                                </div>
                                                <div class="radio">
                                                    <label>
                                                        <input name="cate_shownav" class="colored-blue" value="0" {if condition="$cateedit['cate_shownav'] eq 0"} checked="checked" {/if} type="radio">
                                                        <span class="text">隐藏</span>
                                                    </label>
                                                </div>

                                            </div>

                                        </div>

                                       
                                        <div class="form-group">
                                            <div class="col-sm-offset-2 col-sm-10">
                                                <button type="submit" class="btn btn-default">保存信息</button>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
	</div>	
</div>

{include file="common/_footer"}
</body>
</html>
